package main

import (
	"fmt"
	"regexp"
)

func main() {
	// Parentheses allow you to capture the piece of the string of interest
	re := regexp.MustCompile(`(.)at`) // what is in front of 'at'
	res := re.FindAllStringSubmatch("The cat sat on the mat", -1)
	fmt.Printf("%v\n", res)
}
